{
    var loadImg = function(src){
        return new Promise(function(resolve,reject){
            var oImg = document.createElement('img');
            oImg.src = src;
            oImg.onload = function(){
                resolve(oImg);
            }
        })
    }

    var showImg = function(oImgs){
        document.body.appendChild(oImgs);
    }
    Promise.race(
        [
            loadImg('https://img12.360buyimg.com/da/jfs/t4840/155/2527352443/96433/630306a0/590186e2N7aeb347a.jpg'),
            loadImg('https://img14.360buyimg.com/n4/s260x260_jfs/t5179/231/885003545/56616/c1c51282/59083a31Nba836b3f.jpg'),
            loadImg('https://img1.360buyimg.com/da/jfs/t4552/101/4295105706/112470/4cf8131a/590fe90dN312953bf.jpg')
        ]
    ).then(showImg)

}
